home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / DTS Sample Code / Macintosh Sample Code / Monthly Releases (Compressed) / MacDTS.Sample.Code.88.11.sit / 002. TESample / TESample.h < prev    next >
MacBinary  |  1988-11-01  |  10.4 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Nov 1 16:01:04 1988, modified Tue Nov 1 16:01:04 1988, creator 'MPS ', type ASCII, 10069 bytes "TESample.h" , at 0x27d5 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 45 53 61 6d 70 | 6c 65 2e 68 00 00 00 00 |..TESamp|le.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 27 55 00 | 00 01 7e 9f 93 d6 90 9f |.....'U.|..~.....|
|00000060| 93 d6 90 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 72 c1 00 00 |........|....r...|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 0d 23 0d 23 09 41 70 70 | 6c 65 20 4d 61 63 69 6e |.#.#.App|le Macin|
|000000e0| 74 6f 73 68 20 44 65 76 | 65 6c 6f 70 65 72 20 54 |tosh Dev|eloper T|
|000000f0| 65 63 68 6e 69 63 61 6c | 20 53 75 70 70 6f 72 74 |echnical| Support|
|00000100| 0d 23 0d 23 09 4d 75 6c | 74 69 46 69 6e 64 65 72 |.#.#.Mul|tiFinder|
|00000110| 2d 41 77 61 72 65 20 54 | 65 78 74 45 64 69 74 20 |-Aware T|extEdit |
|00000120| 53 61 6d 70 6c 65 20 41 | 70 70 6c 69 63 61 74 69 |Sample A|pplicati|
|00000130| 6f 6e 0d 23 0d 23 09 54 | 45 53 61 6d 70 6c 65 0d |on.#.#.T|ESample.|
|00000140| 23 0d 23 09 54 45 53 61 | 6d 70 6c 65 2e 68 09 2d |#.#.TESa|mple.h.-|
|00000150| 09 52 65 7a 20 61 6e 64 | 20 43 20 49 6e 63 6c 75 |.Rez and| C Inclu|
|00000160| 64 65 20 53 6f 75 72 63 | 65 0d 23 0d 23 09 43 6f |de Sourc|e.#.#.Co|
|00000170| 70 79 72 69 67 68 74 20 | a9 20 31 39 38 38 20 41 |pyright |. 1988 A|
|00000180| 70 70 6c 65 20 43 6f 6d | 70 75 74 65 72 2c 20 49 |pple Com|puter, I|
|00000190| 6e 63 2e 0d 23 09 41 6c | 6c 20 72 69 67 68 74 73 |nc..#.Al|l rights|
|000001a0| 20 72 65 73 65 72 76 65 | 64 2e 0d 23 0d 23 09 56 | reserve|d..#.#.V|
|000001b0| 65 72 73 69 6f 6e 73 3a | 09 31 2e 30 09 09 09 09 |ersions:|.1.0....|
|000001c0| 09 30 38 2f 38 38 0d 23 | 09 09 09 09 31 2e 30 31 |.08/88.#|....1.01|
|000001d0| 09 09 09 09 31 31 2f 38 | 38 0d 23 0d 23 09 43 6f |....11/8|8.#.#.Co|
|000001e0| 6d 70 6f 6e 65 6e 74 73 | 3a 09 54 45 53 61 6d 70 |mponents|:.TESamp|
|000001f0| 6c 65 2e 70 09 09 09 4e | 6f 76 65 6d 62 65 72 20 |le.p...N|ovember |
|00000200| 31 2c 20 31 39 38 38 0d | 23 09 09 09 09 54 45 53 |1, 1988.|#....TES|
|00000210| 61 6d 70 6c 65 2e 63 09 | 09 09 4e 6f 76 65 6d 62 |ample.c.|..Novemb|
|00000220| 65 72 20 31 2c 20 31 39 | 38 38 0d 23 09 09 09 09 |er 1, 19|88.#....|
|00000230| 54 45 53 61 6d 70 6c 65 | 2e 61 09 09 09 4e 6f 76 |TESample|.a...Nov|
|00000240| 65 6d 62 65 72 20 31 2c | 20 31 39 38 38 0d 23 09 |ember 1,| 1988.#.|
|00000250| 09 09 09 54 45 53 61 6d | 70 6c 65 2e 72 09 09 09 |...TESam|ple.r...|
|00000260| 4e 6f 76 65 6d 62 65 72 | 20 31 2c 20 31 39 38 38 |November| 1, 1988|
|00000270| 0d 23 09 09 09 09 54 45 | 53 61 6d 70 6c 65 2e 68 |.#....TE|Sample.h|
|00000280| 09 09 09 4e 6f 76 65 6d | 62 65 72 20 31 2c 20 31 |...Novem|ber 1, 1|
|00000290| 39 38 38 0d 23 09 09 09 | 09 50 54 45 53 61 6d 70 |988.#...|.PTESamp|
|000002a0| 6c 65 2e 6d 61 6b 65 09 | 09 4e 6f 76 65 6d 62 65 |le.make.|.Novembe|
|000002b0| 72 20 31 2c 20 31 39 38 | 38 0d 23 09 09 09 09 43 |r 1, 198|8.#....C|
|000002c0| 54 45 53 61 6d 70 6c 65 | 2e 6d 61 6b 65 09 09 4e |TESample|.make..N|
|000002d0| 6f 76 65 6d 62 65 72 20 | 31 2c 20 31 39 38 38 0d |ovember |1, 1988.|
|000002e0| 23 0d 23 09 54 45 53 61 | 6d 70 6c 65 20 69 73 20 |#.#.TESa|mple is |
|000002f0| 61 6e 20 65 78 61 6d 70 | 6c 65 20 61 70 70 6c 69 |an examp|le appli|
|00000300| 63 61 74 69 6f 6e 20 74 | 68 61 74 20 64 65 6d 6f |cation t|hat demo|
|00000310| 6e 73 74 72 61 74 65 73 | 20 68 6f 77 20 0d 23 09 |nstrates| how .#.|
|00000320| 74 6f 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 74 68 |to initi|alize th|
|00000330| 65 20 63 6f 6d 6d 6f 6e | 6c 79 20 75 73 65 64 20 |e common|ly used |
|00000340| 74 6f 6f 6c 62 6f 78 20 | 6d 61 6e 61 67 65 72 73 |toolbox |managers|
|00000350| 2c 20 6f 70 65 72 61 74 | 65 20 0d 23 09 73 75 63 |, operat|e .#.suc|
|00000360| 63 65 73 73 66 75 6c 6c | 79 20 75 6e 64 65 72 20 |cessfull|y under |
|00000370| 4d 75 6c 74 69 46 69 6e | 64 65 72 2c 20 68 61 6e |MultiFin|der, han|
|00000380| 64 6c 65 20 64 65 73 6b | 20 61 63 63 65 73 73 6f |dle desk| accesso|
|00000390| 72 69 65 73 20 61 6e 64 | 20 0d 23 09 63 72 65 61 |ries and| .#.crea|
|000003a0| 74 65 2c 20 67 72 6f 77 | 2c 20 61 6e 64 20 7a 6f |te, grow|, and zo|
|000003b0| 6f 6d 20 77 69 6e 64 6f | 77 73 2e 20 54 68 65 20 |om windo|ws. The |
|000003c0| 66 75 6e 64 61 6d 65 6e | 74 61 6c 20 54 65 78 74 |fundamen|tal Text|
|000003d0| 45 64 69 74 20 0d 23 09 | 74 6f 6f 6c 62 6f 78 20 |Edit .#.|toolbox |
|000003e0| 63 61 6c 6c 73 20 61 6e | 64 20 54 65 78 74 45 64 |calls an|d TextEd|
|000003f0| 69 74 20 61 75 74 6f 73 | 63 72 6f 6c 6c 20 61 72 |it autos|croll ar|
|00000400| 65 20 64 65 6d 6f 6e 73 | 74 72 61 74 65 64 2e 20 |e demons|trated. |
|00000410| 49 74 20 0d 23 09 61 6c | 73 6f 20 73 68 6f 77 73 |It .#.al|so shows|
|00000420| 20 68 6f 77 20 74 6f 20 | 63 72 65 61 74 65 20 61 | how to |create a|
|00000430| 6e 64 20 6d 61 69 6e 74 | 61 69 6e 20 73 63 72 6f |nd maint|ain scro|
|00000440| 6c 6c 62 61 72 20 63 6f | 6e 74 72 6f 6c 73 2e 0d |llbar co|ntrols..|
|00000450| 23 0d 23 09 49 74 20 64 | 6f 65 73 20 6e 6f 74 20 |#.#.It d|oes not |
|00000460| 62 79 20 61 6e 79 20 6d | 65 61 6e 73 20 64 65 6d |by any m|eans dem|
|00000470| 6f 6e 73 74 72 61 74 65 | 20 61 6c 6c 20 74 68 65 |onstrate| all the|
|00000480| 20 74 65 63 68 6e 69 71 | 75 65 73 20 79 6f 75 20 | techniq|ues you |
|00000490| 0d 23 09 6e 65 65 64 20 | 66 6f 72 20 61 20 6c 61 |.#.need |for a la|
|000004a0| 72 67 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |rge appl|ication.|
|000004b0| 20 49 6e 20 70 61 72 74 | 69 63 75 6c 61 72 2c 20 | In part|icular, |
|000004c0| 53 61 6d 70 6c 65 20 64 | 6f 65 73 20 6e 6f 74 20 |Sample d|oes not |
|000004d0| 0d 23 09 63 6f 76 65 72 | 20 65 78 63 65 70 74 69 |.#.cover| excepti|
|000004e0| 6f 6e 20 68 61 6e 64 6c | 69 6e 67 2c 20 6d 75 6c |on handl|ing, mul|
|000004f0| 74 69 70 6c 65 20 77 69 | 6e 64 6f 77 73 2f 64 6f |tiple wi|ndows/do|
|00000500| 63 75 6d 65 6e 74 73 2c | 20 0d 23 09 73 6f 70 68 |cuments,| .#.soph|
|00000510| 69 73 74 69 63 61 74 65 | 64 20 6d 65 6d 6f 72 79 |isticate|d memory|
|00000520| 20 6d 61 6e 61 67 65 6d | 65 6e 74 2c 20 70 72 69 | managem|ent, pri|
|00000530| 6e 74 69 6e 67 2c 20 6f | 72 20 75 6e 64 6f 2e 20 |nting, o|r undo. |
|00000540| 41 6c 6c 20 6f 66 20 0d | 23 09 74 68 65 73 65 20 |All of .|#.these |
|00000550| 61 72 65 20 76 69 74 61 | 6c 20 70 61 72 74 73 20 |are vita|l parts |
|00000560| 6f 66 20 61 20 6e 6f 72 | 6d 61 6c 20 66 75 6c 6c |of a nor|mal full|
|00000570| 2d 73 69 7a 65 64 20 61 | 70 70 6c 69 63 61 74 69 |-sized a|pplicati|
|00000580| 6f 6e 2e 0d 23 0d 23 09 | 54 68 69 73 20 61 70 70 |on..#.#.|This app|
|00000590| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 61 6e 20 65 |lication| is an e|
|000005a0| 78 61 6d 70 6c 65 20 6f | 66 20 74 68 65 20 66 6f |xample o|f the fo|
|000005b0| 72 6d 20 6f 66 20 61 20 | 4d 61 63 69 6e 74 6f 73 |rm of a |Macintos|
|000005c0| 68 20 0d 23 09 61 70 70 | 6c 69 63 61 74 69 6f 6e |h .#.app|lication|
|000005d0| 3b 20 69 74 20 69 73 20 | 4e 4f 54 20 61 20 74 65 |; it is |NOT a te|
|000005e0| 6d 70 6c 61 74 65 2e 20 | 49 74 20 69 73 20 4e 4f |mplate. |It is NO|
|000005f0| 54 20 69 6e 74 65 6e 64 | 65 64 20 74 6f 20 62 65 |T intend|ed to be|
|00000600| 20 0d 23 09 75 73 65 64 | 20 61 73 20 61 20 66 6f | .#.used| as a fo|
|00000610| 75 6e 64 61 74 69 6f 6e | 20 66 6f 72 20 74 68 65 |undation| for the|
|00000620| 20 6e 65 78 74 20 77 6f | 72 6c 64 2d 63 6c 61 73 | next wo|rld-clas|
|00000630| 73 2c 20 62 65 73 74 2d | 73 65 6c 6c 69 6e 67 2c |s, best-|selling,|
|00000640| 20 0d 23 09 36 30 30 4b | 20 61 70 70 6c 69 63 61 | .#.600K| applica|
|00000650| 74 69 6f 6e 2e 20 41 20 | 73 74 69 63 6b 20 66 69 |tion. A |stick fi|
|00000660| 67 75 72 65 20 64 72 61 | 77 69 6e 67 20 6f 66 20 |gure dra|wing of |
|00000670| 74 68 65 20 68 75 6d 61 | 6e 20 62 6f 64 79 20 6d |the huma|n body m|
|00000680| 61 79 20 0d 23 09 62 65 | 20 61 20 67 6f 6f 64 20 |ay .#.be| a good |
|00000690| 65 78 61 6d 70 6c 65 20 | 6f 66 20 74 68 65 20 66 |example |of the f|
|000006a0| 6f 72 6d 20 66 6f 72 20 | 61 20 70 61 69 6e 74 69 |orm for |a painti|
|000006b0| 6e 67 2c 20 62 75 74 20 | 74 68 61 74 20 64 6f 65 |ng, but |that doe|
|000006c0| 73 20 6e 6f 74 20 0d 23 | 09 6d 65 61 6e 20 69 74 |s not .#|.mean it|
|000006d0| 20 73 68 6f 75 6c 64 20 | 62 65 20 75 73 65 64 20 | should |be used |
|000006e0| 61 73 20 74 68 65 20 62 | 61 73 69 73 20 66 6f 72 |as the b|asis for|
|000006f0| 20 74 68 65 20 6e 65 78 | 74 20 4d 6f 6e 61 20 4c | the nex|t Mona L|
|00000700| 69 73 61 2e 0d 23 0d 23 | 09 57 65 20 72 65 63 6f |isa..#.#|.We reco|
|00000710| 6d 6d 65 6e 64 20 74 68 | 61 74 20 79 6f 75 20 72 |mmend th|at you r|
|00000720| 65 76 69 65 77 20 74 68 | 69 73 20 70 72 6f 67 72 |eview th|is progr|
|00000730| 61 6d 20 6f 72 20 53 61 | 6d 70 6c 65 20 62 65 66 |am or Sa|mple bef|
|00000740| 6f 72 65 20 0d 23 09 62 | 65 67 69 6e 6e 69 6e 67 |ore .#.b|eginning|
|00000750| 20 61 20 6e 65 77 20 61 | 70 70 6c 69 63 61 74 69 | a new a|pplicati|
|00000760| 6f 6e 2e 20 53 61 6d 70 | 6c 65 20 69 73 20 61 20 |on. Samp|le is a |
|00000770| 73 69 6d 70 6c 65 20 61 | 70 70 2e 20 77 68 69 63 |simple a|pp. whic|
|00000780| 68 20 64 6f 65 73 6e d5 | 74 20 0d 23 09 75 73 65 |h doesn.|t .#.use|
|00000790| 20 54 65 78 74 45 64 69 | 74 20 6f 72 20 74 68 65 | TextEdi|t or the|
|000007a0| 20 43 6f 6e 74 72 6f 6c | 20 4d 61 6e 61 67 65 72 | Control| Manager|
|000007b0| 2e 0d 23 0d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..#.----|--------|
|000007c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000800| 2d 2d 2a 2f 0d 0d 2f 2a | 09 54 68 65 73 65 20 23 |--*/../*|.These #|
|00000810| 64 65 66 69 6e 65 73 20 | 63 6f 72 72 65 73 70 6f |defines |correspo|
|00000820| 6e 64 20 74 6f 20 76 61 | 6c 75 65 73 20 69 6e 20 |nd to va|lues in |
|00000830| 74 68 65 20 50 61 73 63 | 61 6c 20 73 6f 75 72 63 |the Pasc|al sourc|
|00000840| 65 20 63 6f 64 65 2e 0d | 09 54 45 53 61 6d 70 6c |e code..|.TESampl|
|00000850| 65 2e 63 20 61 6e 64 20 | 54 45 53 61 6d 70 6c 65 |e.c and |TESample|
|00000860| 2e 72 20 69 6e 63 6c 75 | 64 65 20 74 68 69 73 20 |.r inclu|de this |
|00000870| 66 69 6c 65 2e 20 2a 2f | 0d 0d 2f 2a 09 44 65 74 |file. */|../*.Det|
|00000880| 65 72 6d 69 6e 69 6e 67 | 20 61 6e 20 61 70 70 6c |ermining| an appl|
|00000890| 69 63 61 74 69 6f 6e 27 | 73 20 6d 69 6e 69 6d 75 |ication'|s minimu|
|000008a0| 6d 20 73 69 7a 65 20 74 | 6f 20 72 65 71 75 65 73 |m size t|o reques|
|000008b0| 74 20 66 72 6f 6d 20 4d | 75 6c 74 69 46 69 6e 64 |t from M|ultiFind|
|000008c0| 65 72 20 64 65 70 65 6e | 64 73 0d 09 6f 6e 20 6d |er depen|ds..on m|
|000008d0| 61 6e 79 20 74 68 69 6e | 67 73 2c 20 65 61 63 68 |any thin|gs, each|
|000008e0| 20 6f 66 20 77 68 69 63 | 68 20 63 61 6e 20 62 65 | of whic|h can be|
|000008f0| 20 75 6e 69 71 75 65 20 | 74 6f 20 61 6e 20 61 70 | unique |to an ap|
|00000900| 70 6c 69 63 61 74 69 6f | 6e 27 73 20 66 75 6e 63 |plicatio|n's func|
|00000910| 74 69 6f 6e 2c 0d 09 74 | 68 65 20 61 6e 74 69 63 |tion,..t|he antic|
|00000920| 69 70 61 74 65 64 20 65 | 6e 76 69 72 6f 6e 6d 65 |ipated e|nvironme|
|00000930| 6e 74 2c 20 74 68 65 20 | 64 65 76 65 6c 6f 70 65 |nt, the |develope|
|00000940| 72 27 73 20 61 74 74 69 | 74 75 64 65 20 6f 66 20 |r's atti|tude of |
|00000950| 77 68 61 74 20 63 6f 6e | 73 74 69 74 75 74 65 73 |what con|stitutes|
|00000960| 0d 09 72 65 61 73 6f 6e | 61 62 6c 65 20 66 75 6e |..reason|able fun|
|00000970| 63 74 69 6f 6e 61 6c 69 | 74 79 20 61 6e 64 20 70 |ctionali|ty and p|
|00000980| 65 72 66 6f 72 6d 61 6e | 63 65 2c 20 65 74 63 2e |erforman|ce, etc.|
|00000990| 20 48 65 72 65 20 69 73 | 20 61 20 6c 69 73 74 20 | Here is| a list |
|000009a0| 6f 66 20 73 6f 6d 65 20 | 74 68 69 6e 67 73 20 74 |of some |things t|
|000009b0| 6f 0d 09 63 6f 6e 73 69 | 64 65 72 20 77 68 65 6e |o..consi|der when|
|000009c0| 20 64 65 74 65 72 6d 69 | 6e 69 6e 67 20 74 68 65 | determi|ning the|
|000009d0| 20 6d 69 6e 69 6d 75 6d | 20 73 69 7a 65 20 28 61 | minimum| size (a|
|000009e0| 6e 64 20 70 72 65 66 65 | 72 72 65 64 20 73 69 7a |nd prefe|rred siz|
|000009f0| 65 29 20 66 6f 72 20 79 | 6f 75 72 0d 09 61 70 70 |e) for y|our..app|
|00000a00| 6c 69 63 61 74 69 6f 6e | 2e 20 54 68 65 20 6c 69 |lication|. The li|
|00000a10| 73 74 20 69 73 20 70 72 | 65 74 74 79 20 6d 75 63 |st is pr|etty muc|
|00000a20| 68 20 69 6e 20 6f 72 64 | 65 72 20 6f 66 20 69 6d |h in ord|er of im|
|00000a30| 70 6f 72 74 61 6e 63 65 | 2c 20 62 75 74 20 62 79 |portance|, but by|
|00000a40| 20 6e 6f 20 6d 65 61 6e | 73 0d 09 63 6f 6d 70 6c | no mean|s..compl|
|00000a50| 65 74 65 2e 0d 09 0d 09 | 31 2e 09 57 68 61 74 20 |ete.....|1..What |
|00000a60| 69 73 20 74 68 65 20 6d | 69 6e 69 6d 75 6d 20 73 |is the m|inimum s|
|00000a70| 69 7a 65 20 6e 65 65 64 | 65 64 20 74 6f 20 67 69 |ize need|ed to gi|
|00000a80| 76 65 20 61 6c 6d 6f 73 | 74 20 31 30 30 20 70 65 |ve almos|t 100 pe|
|00000a90| 72 63 65 6e 74 20 61 73 | 73 75 72 61 6e 63 65 0d |rcent as|surance.|
|00000aa0| 09 09 74 68 61 74 20 74 | 68 65 20 61 70 70 6c 69 |..that t|he appli|
|00000ab0| 63 61 74 69 6f 6e 20 77 | 6f 6e 27 74 20 63 72 61 |cation w|on't cra|
|00000ac0| 73 68 20 62 65 63 61 75 | 73 65 20 69 74 20 72 61 |sh becau|se it ra|
|00000ad0| 6e 20 6f 75 74 20 6f 66 | 20 6d 65 6d 6f 72 79 3f |n out of| memory?|
|00000ae0| 20 54 68 69 73 0d 09 09 | 69 6e 63 6c 75 64 65 73 | This...|includes|
|00000af0| 20 6e 6f 74 20 6f 6e 6c | 79 20 74 68 69 6e 67 73 | not onl|y things|
|00000b00| 20 74 68 61 74 20 79 6f | 75 20 64 6f 20 68 61 76 | that yo|u do hav|
|00000b10| 65 20 64 69 72 65 63 74 | 20 63 6f 6e 74 72 6f 6c |e direct| control|
|00000b20| 20 6f 76 65 72 20 73 75 | 63 68 20 61 73 0d 09 09 | over su|ch as...|
|00000b30| 63 68 65 63 6b 69 6e 67 | 20 66 6f 72 20 4e 49 4c |checking| for NIL|
|00000b40| 20 68 61 6e 64 6c 65 73 | 20 61 6e 64 20 70 6f 69 | handles| and poi|
|00000b50| 6e 74 65 72 73 2c 20 62 | 75 74 20 61 6c 73 6f 20 |nters, b|ut also |
|00000b60| 74 68 69 6e 67 73 20 74 | 68 61 74 20 73 6f 6d 65 |things t|hat some|
|00000b70| 0d 09 09 66 65 65 6c 20 | 61 72 65 20 6e 6f 74 20 |...feel |are not |
|00000b80| 73 6f 20 6d 75 63 68 20 | 75 6e 64 65 72 20 74 68 |so much |under th|
|00000b90| 65 69 72 20 63 6f 6e 74 | 72 6f 6c 20 73 75 63 68 |eir cont|rol such|
|00000ba0| 20 61 73 20 51 75 69 63 | 6b 44 72 61 77 20 61 6e | as Quic|kDraw an|
|00000bb0| 64 20 74 68 65 0d 09 09 | 53 65 67 6d 65 6e 74 20 |d the...|Segment |
|00000bc0| 4c 6f 61 64 65 72 2e 0d | 09 09 0d 09 32 2e 09 57 |Loader..|....2..W|
|00000bd0| 68 61 74 20 6b 69 6e 64 | 20 6f 66 20 70 65 72 66 |hat kind| of perf|
|00000be0| 6f 72 6d 61 6e 63 65 20 | 63 61 6e 20 61 20 75 73 |ormance |can a us|
|00000bf0| 65 72 20 65 78 70 65 63 | 74 20 66 72 6f 6d 20 74 |er expec|t from t|
|00000c00| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |he appli|cation w|
|00000c10| 68 65 6e 0d 09 09 69 74 | 20 69 73 20 72 75 6e 6e |hen...it| is runn|
|00000c20| 69 6e 67 20 69 6e 20 74 | 68 65 20 6d 69 6e 69 6d |ing in t|he minim|
|00000c30| 75 6d 20 6d 65 6d 6f 72 | 79 20 63 6f 6e 66 69 67 |um memor|y config|
|00000c40| 75 72 61 74 69 6f 6e 3f | 20 50 65 72 66 6f 72 6d |uration?| Perform|
|00000c50| 61 6e 63 65 20 69 6e 63 | 6c 75 64 65 73 0d 09 09 |ance inc|ludes...|
|00000c60| 6e 6f 74 20 6f 6e 6c 79 | 20 73 70 65 65 64 20 69 |not only| speed i|
|00000c70| 6e 20 68 61 6e 64 6c 69 | 6e 67 20 64 61 74 61 2c |n handli|ng data,|
|00000c80| 20 62 75 74 20 61 6c 73 | 6f 20 74 68 69 6e 67 73 | but als|o things|
|00000c90| 20 6c 69 6b 65 20 68 6f | 77 20 6d 61 6e 79 20 64 | like ho|w many d|
|00000ca0| 6f 63 75 6d 65 6e 74 73 | 0d 09 09 63 61 6e 20 62 |ocuments|...can b|
|00000cb0| 65 20 6f 70 65 6e 65 64 | 2c 20 65 74 63 2e 0d 09 |e opened|, etc...|
|00000cc0| 09 0d 09 33 2e 09 57 68 | 61 74 20 61 72 65 20 74 |...3..Wh|at are t|
|00000cd0| 68 65 20 74 79 70 69 63 | 61 6c 20 73 69 7a 65 73 |he typic|al sizes|
|00000ce0| 20 6f 66 20 73 63 72 61 | 70 73 20 69 73 20 5b 61 | of scra|ps is [a|
|00000cf0| 20 62 6f 79 20 64 6f 67 | 5d 20 74 68 61 74 20 61 | boy dog|] that a|
|00000d00| 20 75 73 65 72 20 6d 69 | 67 68 74 0d 09 09 77 69 | user mi|ght...wi|
|00000d10| 73 68 20 74 6f 20 77 6f | 72 6b 20 77 69 74 68 20 |sh to wo|rk with |
|00000d20| 77 68 65 6e 20 6c 61 75 | 63 68 69 6e 67 20 6f 72 |when lau|ching or|
|00000d30| 20 73 77 69 74 63 68 69 | 6e 67 20 74 6f 20 79 6f | switchi|ng to yo|
|00000d40| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 3f 20 |ur appli|cation? |
|00000d50| 49 66 0d 09 09 74 68 65 | 20 61 6d 6f 75 6e 74 20 |If...the| amount |
|00000d60| 6f 66 20 6d 65 6d 6f 72 | 79 20 69 73 20 74 6f 6f |of memor|y is too|
|00000d70| 20 73 6d 61 6c 6c 2c 20 | 74 68 65 20 73 63 72 61 | small, |the scra|
|00000d80| 70 20 6d 61 79 20 67 65 | 74 20 6c 6f 73 74 20 5b |p may ge|t lost [|
|00000d90| 77 69 6c 6c 20 68 61 76 | 65 0d 09 09 74 6f 20 62 |will hav|e...to b|
|00000da0| 65 20 73 68 6f 74 5d 2e | 20 54 68 69 73 20 63 61 |e shot].| This ca|
|00000db0| 6e 20 62 65 20 71 75 69 | 74 65 20 66 72 75 73 74 |n be qui|te frust|
|00000dc0| 72 61 74 69 6e 67 20 74 | 6f 20 74 68 65 20 75 73 |rating t|o the us|
|00000dd0| 65 72 2e 0d 09 09 0d 09 | 34 2e 09 54 68 65 20 70 |er......|4..The p|
|00000de0| 72 65 76 69 6f 75 73 20 | 69 74 65 6d 73 20 68 61 |revious |items ha|
|00000df0| 76 65 20 63 6f 6e 63 65 | 6e 74 72 61 74 65 64 20 |ve conce|ntrated |
|00000e00| 6f 6e 20 74 6f 70 69 63 | 73 20 74 68 61 74 20 74 |on topic|s that t|
|00000e10| 65 6e 64 20 74 6f 20 63 | 61 75 73 65 20 61 6e 0d |end to c|ause an.|
|00000e20| 09 09 69 6e 63 72 65 61 | 73 65 20 69 6e 20 74 68 |..increa|se in th|
|00000e30| 65 20 6d 69 6e 69 6d 75 | 6d 20 73 69 7a 65 20 74 |e minimu|m size t|
|00000e40| 6f 20 72 65 71 75 65 73 | 74 20 66 72 6f 6d 20 4d |o reques|t from M|
|00000e50| 75 6c 74 69 46 69 6e 64 | 65 72 2e 20 4f 6e 20 74 |ultiFind|er. On t|
|00000e60| 68 65 20 66 6c 69 70 0d | 09 09 73 69 64 65 2c 20 |he flip.|..side, |
|00000e70| 68 6f 77 65 76 65 72 2c | 20 73 68 6f 75 6c 64 20 |however,| should |
|00000e80| 62 65 20 74 68 65 20 63 | 6f 6e 73 69 64 65 72 61 |be the c|onsidera|
|00000e90| 74 69 6f 6e 20 6f 66 20 | 77 68 61 74 20 65 6e 76 |tion of |what env|
|00000ea0| 69 72 6f 6e 6d 65 6e 74 | 73 20 74 68 65 0d 09 09 |ironment|s the...|
|00000eb0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6d 61 79 20 |applicat|ion may |
|00000ec0| 62 65 20 72 75 6e 6e 69 | 6e 67 20 69 6e 2e 20 54 |be runni|ng in. T|
|00000ed0| 68 65 72 65 20 6d 61 79 | 20 62 65 20 61 20 68 69 |here may| be a hi|
|00000ee0| 67 68 20 70 72 6f 62 61 | 62 69 6c 69 74 79 20 74 |gh proba|bility t|
|00000ef0| 68 61 74 0d 09 09 6d 61 | 6e 79 20 75 73 65 72 73 |hat...ma|ny users|
|00000f00| 20 77 69 74 68 20 72 65 | 6c 61 74 69 76 65 6c 79 | with re|latively|
|00000f10| 20 73 6d 61 6c 6c 20 6d | 65 6d 6f 72 79 20 63 6f | small m|emory co|
|00000f20| 6e 66 69 67 75 72 61 74 | 69 6f 6e 73 20 77 69 6c |nfigurat|ions wil|
|00000f30| 6c 20 77 61 6e 74 20 74 | 6f 0d 09 09 61 76 61 69 |l want t|o...avai|
|00000f40| 6c 20 74 68 65 6d 73 65 | 6c 76 65 73 20 6f 66 20 |l themse|lves of |
|00000f50| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00000f60| 2e 20 4f 72 2c 20 6d 61 | 6e 79 20 75 73 65 72 73 |. Or, ma|ny users|
|00000f70| 20 6d 69 67 68 74 20 77 | 61 6e 74 20 74 6f 20 75 | might w|ant to u|
|00000f80| 73 65 20 69 74 0d 09 09 | 77 68 69 6c 65 20 73 65 |se it...|while se|
|00000f90| 76 65 72 61 6c 20 6f 74 | 68 65 72 2c 20 70 6f 73 |veral ot|her, pos|
|00000fa0| 73 69 62 6c 79 20 72 65 | 6c 61 74 65 64 2f 63 6f |sibly re|lated/co|
|00000fb0| 6d 70 6c 65 6d 65 6e 74 | 61 72 79 20 61 70 70 6c |mplement|ary appl|
|00000fc0| 69 63 61 74 69 6f 6e 73 | 20 61 72 65 0d 09 09 72 |ications| are...r|
|00000fd0| 75 6e 6e 69 6e 67 2e 20 | 49 66 20 74 68 61 74 20 |unning. |If that |
|00000fe0| 69 73 20 74 68 65 20 63 | 61 73 65 2c 20 69 74 20 |is the c|ase, it |
|00000ff0| 77 6f 75 6c 64 20 62 65 | 20 68 65 6c 70 66 75 6c |would be| helpful|
|00001000| 20 74 6f 20 68 61 76 65 | 20 61 20 66 61 69 72 6c | to have| a fairl|
|00001010| 79 0d 09 09 73 6d 61 6c | 6c 20 6d 69 6e 69 6d 75 |y...smal|l minimu|
|00001020| 6d 20 73 69 7a 65 2e 0d | 09 0d 09 57 68 61 74 20 |m size..|...What |
|00001030| 77 65 20 64 69 64 20 66 | 6f 72 20 54 45 53 61 6d |we did f|or TESam|
|00001040| 70 6c 65 3a 0d 09 0d 09 | 09 57 65 20 64 65 74 65 |ple:....|.We dete|
|00001050| 72 6d 69 6e 65 64 20 74 | 68 65 20 73 6d 61 6c 6c |rmined t|he small|
|00001060| 65 73 74 20 68 65 61 70 | 20 73 69 7a 65 20 74 68 |est heap| size th|
|00001070| 61 74 20 54 45 53 61 6d | 70 6c 65 20 63 6f 75 6c |at TESam|ple coul|
|00001080| 64 20 68 61 76 65 20 61 | 6e 64 20 73 74 69 6c 6c |d have a|nd still|
|00001090| 0d 09 09 72 75 6e 20 28 | 32 32 4b 29 2e 20 46 6f |...run (|22K). Fo|
|000010a0| 72 20 74 68 65 20 70 72 | 65 66 65 72 72 65 64 20 |r the pr|eferred |
|000010b0| 73 69 7a 65 20 77 65 20 | 61 64 64 65 64 20 65 6e |size we |added en|
|000010c0| 6f 75 67 68 20 73 70 61 | 63 65 20 74 6f 20 70 65 |ough spa|ce to pe|
|000010d0| 72 6d 69 74 3a 0d 09 09 | 09 61 2e 20 61 20 6d 61 |rmit:...|.a. a ma|
|000010e0| 78 69 6d 75 6d 20 73 69 | 7a 65 20 54 65 78 74 45 |ximum si|ze TextE|
|000010f0| 64 69 74 20 74 65 78 74 | 20 68 61 6e 64 6c 65 20 |dit text| handle |
|00001100| 28 33 32 30 30 30 20 63 | 68 61 72 61 63 74 65 72 |(32000 c|haracter|
|00001110| 73 29 0d 09 09 09 62 2e | 20 61 20 6d 61 78 69 6d |s)....b.| a maxim|
|00001120| 75 6d 20 75 73 61 62 6c | 65 20 54 65 78 74 45 64 |um usabl|e TextEd|
|00001130| 69 74 20 73 63 72 61 70 | 20 28 33 32 30 30 30 20 |it scrap| (32000 |
|00001140| 63 68 61 72 61 63 74 65 | 72 73 29 0d 09 09 09 62 |characte|rs)....b|
|00001150| 2e 20 61 20 6d 61 78 69 | 6d 75 6d 20 73 63 72 61 |. a maxi|mum scra|
|00001160| 70 20 61 73 20 61 20 72 | 65 73 75 6c 74 20 6f 66 |p as a r|esult of|
|00001170| 20 43 6f 70 79 20 28 33 | 32 30 30 30 20 63 68 61 | Copy (3|2000 cha|
|00001180| 72 61 63 74 65 72 73 29 | 0d 09 09 09 64 2e 20 61 |racters)|....d. a|
|00001190| 20 6c 69 74 74 6c 65 20 | 70 65 72 66 6f 72 6d 61 | little |performa|
|000011a0| 6e 63 65 20 63 75 73 68 | 69 6f 6e 20 28 73 65 65 |nce cush|ion (see|
|000011b0| 20 32 2c 20 61 62 6f 76 | 65 29 20 28 31 30 4b 29 | 2, abov|e) (10K)|
|000011c0| 0d 09 09 52 65 73 75 6c | 74 3a 20 31 32 32 4b 20 |...Resul|t: 122K |
|000011d0| 66 6f 72 20 70 72 65 66 | 65 72 72 65 64 20 73 69 |for pref|erred si|
|000011e0| 7a 65 0d 09 09 0d 09 09 | 46 6f 72 20 74 68 65 20 |ze......|For the |
|000011f0| 6d 69 6e 69 6d 75 6d 20 | 73 69 7a 65 20 77 65 20 |minimum |size we |
|00001200| 74 6f 6f 6b 20 74 68 65 | 20 32 32 4b 20 61 6e 64 |took the| 22K and|
|00001210| 20 74 68 65 6e 20 73 63 | 61 6c 65 64 20 64 6f 77 | then sc|aled dow|
|00001220| 6e 20 6f 75 72 20 72 65 | 71 75 69 72 65 6d 65 6e |n our re|quiremen|
|00001230| 74 73 0d 09 09 66 6f 72 | 20 61 2c 62 2c 20 61 6e |ts...for| a,b, an|
|00001240| 64 20 63 20 61 62 6f 76 | 65 2e 20 57 65 20 74 68 |d c abov|e. We th|
|00001250| 6f 75 67 68 74 20 74 68 | 61 74 20 70 72 6f 76 69 |ought th|at provi|
|00001260| 64 69 6e 67 20 31 36 4b | 20 6d 6f 72 65 20 77 6f |ding 16K| more wo|
|00001270| 75 6c 64 20 62 65 20 6c | 65 61 6e 0d 09 09 61 6e |uld be l|ean...an|
|00001280| 64 20 6d 65 61 6e 20 28 | 73 65 65 20 34 2c 20 61 |d mean (|see 4, a|
|00001290| 62 6f 76 65 29 2e 0d 09 | 09 52 65 73 75 6c 74 3a |bove)...|.Result:|
|000012a0| 20 33 38 4b 20 66 6f 72 | 20 6d 69 6e 69 6d 75 6d | 38K for| minimum|
|000012b0| 20 73 69 7a 65 0d 2a 2f | 0d 20 0d 23 64 65 66 69 | size.*/|. .#defi|
|000012c0| 6e 65 20 6b 50 72 65 66 | 53 69 7a 65 09 09 09 09 |ne kPref|Size....|
|000012d0| 31 32 32 0d 23 64 65 66 | 69 6e 65 20 6b 4d 69 6e |122.#def|ine kMin|
|000012e0| 53 69 7a 65 09 09 09 09 | 33 38 0d 09 0d 2f 2a 20 |Size....|38.../* |
|000012f0| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 63 6f |The foll|owing co|
|00001300| 6e 73 74 61 6e 74 73 20 | 61 72 65 20 75 73 65 64 |nstants |are used|
|00001310| 20 74 6f 20 69 64 65 6e | 74 69 66 79 20 6d 65 6e | to iden|tify men|
|00001320| 75 73 20 61 6e 64 20 74 | 68 65 69 72 20 69 74 65 |us and t|heir ite|
|00001330| 6d 73 2e 20 54 68 65 20 | 6d 65 6e 75 20 49 44 73 |ms. The |menu IDs|
|00001340| 0d 20 20 20 68 61 76 65 | 20 61 6e 20 22 6d 22 20 |. have| an "m" |
|00001350| 70 72 65 66 69 78 20 61 | 6e 64 20 74 68 65 20 69 |prefix a|nd the i|
|00001360| 74 65 6d 20 6e 75 6d 62 | 65 72 73 20 77 69 74 68 |tem numb|ers with|
|00001370| 69 6e 20 65 61 63 68 20 | 6d 65 6e 75 20 68 61 76 |in each |menu hav|
|00001380| 65 20 61 6e 20 22 69 22 | 20 70 72 65 66 69 78 2e |e an "i"| prefix.|
|00001390| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 6d 41 70 70 | */.#def|ine.mApp|
|000013a0| 6c 65 09 09 09 09 09 31 | 32 38 09 09 2f 2a 20 41 |le.....1|28../* A|
|000013b0| 70 70 6c 65 20 6d 65 6e | 75 20 2a 2f 0d 23 64 65 |pple men|u */.#de|
|000013c0| 66 69 6e 65 09 69 41 62 | 6f 75 74 09 09 09 09 09 |fine.iAb|out.....|
|000013d0| 31 0d 0d 23 64 65 66 69 | 6e 65 09 6d 46 69 6c 65 |1..#defi|ne.mFile|
|000013e0| 09 09 09 09 09 31 32 39 | 09 09 2f 2a 20 46 69 6c |.....129|../* Fil|
|000013f0| 65 20 6d 65 6e 75 20 2a | 2f 0d 23 64 65 66 69 6e |e menu *|/.#defin|
|00001400| 65 09 69 4e 65 77 09 09 | 09 09 09 31 0d 23 64 65 |e.iNew..|...1.#de|
|00001410| 66 69 6e 65 09 69 43 6c | 6f 73 65 09 09 09 09 09 |fine.iCl|ose.....|
|00001420| 34 0d 23 64 65 66 69 6e | 65 09 69 51 75 69 74 09 |4.#defin|e.iQuit.|
|00001430| 09 09 09 09 31 32 0d 0d | 23 64 65 66 69 6e 65 09 |....12..|#define.|
|00001440| 6d 45 64 69 74 09 09 09 | 09 09 31 33 30 09 09 2f |mEdit...|..130../|
|00001450| 2a 20 45 64 69 74 20 6d | 65 6e 75 20 2a 2f 0d 23 |* Edit m|enu */.#|
|00001460| 64 65 66 69 6e 65 09 69 | 55 6e 64 6f 09 09 09 09 |define.i|Undo....|
|00001470| 09 31 0d 23 64 65 66 69 | 6e 65 09 69 43 75 74 09 |.1.#defi|ne.iCut.|
|00001480| 09 09 09 09 33 0d 23 64 | 65 66 69 6e 65 09 69 43 |....3.#d|efine.iC|
|00001490| 6f 70 79 09 09 09 09 09 | 34 0d 23 64 65 66 69 6e |opy.....|4.#defin|
|000014a0| 65 09 69 50 61 73 74 65 | 09 09 09 09 09 35 0d 23 |e.iPaste|.....5.#|
|000014b0| 64 65 66 69 6e 65 09 69 | 43 6c 65 61 72 09 09 09 |define.i|Clear...|
|000014c0| 09 09 36 0d 0d 2f 2a 09 | 31 2e 30 31 20 2d 20 6b |..6../*.|1.01 - k|
|000014d0| 54 6f 70 4c 65 66 74 20 | 2d 20 54 68 69 73 20 69 |TopLeft |- This i|
|000014e0| 73 20 66 6f 72 20 70 6f | 73 69 74 69 6f 6e 69 6e |s for po|sitionin|
|000014f0| 67 20 74 68 65 20 44 69 | 73 6b 20 49 6e 69 74 69 |g the Di|sk Initi|
|00001500| 61 6c 69 7a 61 74 69 6f | 6e 20 64 69 61 6c 6f 67 |alizatio|n dialog|
|00001510| 73 2e 20 2a 2f 0d 0d 23 | 64 65 66 69 6e 65 20 6b |s. */..#|define k|
|00001520| 44 49 54 6f 70 09 09 09 | 09 09 30 78 30 30 35 30 |DITop...|..0x0050|
|00001530| 0d 23 64 65 66 69 6e 65 | 20 6b 44 49 4c 65 66 74 |.#define| kDILeft|
|00001540| 09 09 09 09 09 30 78 30 | 30 37 30 0d 0d 2f 2a 20 |.....0x0|070../* |
|00001550| 31 2e 30 31 20 2d 20 63 | 68 61 6e 67 65 64 20 63 |1.01 - c|hanged c|
|00001560| 6f 6e 73 74 61 6e 74 73 | 20 74 6f 20 62 65 67 69 |onstants| to begi|
|00001570| 6e 20 77 69 74 68 20 27 | 6b 27 20 66 6f 72 20 63 |n with '|k' for c|
|00001580| 6f 6e 73 69 73 74 65 6e | 63 79 2c 20 65 78 63 65 |onsisten|cy, exce|
|00001590| 70 74 20 66 6f 72 20 72 | 65 73 6f 75 72 63 65 20 |pt for r|esource |
|000015a0| 49 44 73 20 2a 2f 0d 2f | 2a 09 6b 54 65 78 74 4d |IDs */./|*.kTextM|
|000015b0| 61 72 67 69 6e 20 69 73 | 20 74 68 65 20 6e 75 6d |argin is| the num|
|000015c0| 62 65 72 20 6f 66 20 70 | 69 78 65 6c 73 20 77 65 |ber of p|ixels we|
|000015d0| 20 6c 65 61 76 65 20 62 | 6c 61 6e 6b 20 61 74 20 | leave b|lank at |
|000015e0| 74 68 65 20 65 64 67 65 | 20 6f 66 20 74 68 65 20 |the edge| of the |
|000015f0| 77 69 6e 64 6f 77 2e 20 | 2a 2f 0d 23 64 65 66 69 |window. |*/.#defi|
|00001600| 6e 65 20 6b 54 65 78 74 | 4d 61 72 67 69 6e 09 09 |ne kText|Margin..|
|00001610| 09 09 32 0d 0d 2f 2a 20 | 6b 4d 61 78 4f 70 65 6e |..2../* |kMaxOpen|
|00001620| 44 6f 63 75 6d 65 6e 74 | 73 20 69 73 20 75 73 65 |Document|s is use|
|00001630| 64 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 77 |d to det|ermine w|
|00001640| 68 65 74 68 65 72 20 61 | 20 6e 65 77 20 64 6f 63 |hether a| new doc|
|00001650| 75 6d 65 6e 74 20 63 61 | 6e 20 62 65 20 6f 70 65 |ument ca|n be ope|
|00001660| 6e 65 64 0d 20 20 20 6f | 72 20 63 72 65 61 74 65 |ned. o|r create|
|00001670| 64 2e 20 57 65 20 6b 65 | 65 70 20 74 72 61 63 6b |d. We ke|ep track|
|00001680| 20 6f 66 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | of the |number o|
|00001690| 66 20 6f 70 65 6e 20 64 | 6f 63 75 6d 65 6e 74 73 |f open d|ocuments|
|000016a0| 2c 20 61 6e 64 20 64 69 | 73 61 62 6c 65 20 74 68 |, and di|sable th|
|000016b0| 65 0d 20 20 20 6d 65 6e | 75 20 69 74 65 6d 73 20 |e. men|u items |
|000016c0| 74 68 61 74 20 63 72 65 | 61 74 65 20 61 20 6e 65 |that cre|ate a ne|
|000016d0| 77 20 64 6f 63 75 6d 65 | 6e 74 20 77 68 65 6e 20 |w docume|nt when |
|000016e0| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 69 73 20 72 |the maxi|mum is r|
|000016f0| 65 61 63 68 65 64 2e 20 | 49 66 20 74 68 65 0d 20 |eached. |If the. |
|00001700| 20 20 6e 75 6d 62 65 72 | 20 6f 66 20 64 6f 63 75 | number| of docu|
|00001710| 6d 65 6e 74 73 20 66 61 | 6c 6c 73 20 62 65 6c 6f |ments fa|lls belo|
|00001720| 77 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 2c 20 74 |w the ma|ximum, t|
|00001730| 68 65 20 69 74 65 6d 73 | 20 61 72 65 20 65 6e 61 |he items| are ena|
|00001740| 62 6c 65 64 20 61 67 61 | 69 6e 2e 20 2a 2f 0d 23 |bled aga|in. */.#|
|00001750| 64 65 66 69 6e 65 09 6b | 4d 61 78 4f 70 65 6e 44 |define.k|MaxOpenD|
|00001760| 6f 63 75 6d 65 6e 74 73 | 09 09 31 0d 09 0d 2f 2a |ocuments|..1.../*|
|00001770| 09 6b 4d 61 78 44 6f 63 | 57 69 64 74 68 20 69 73 |.kMaxDoc|Width is|
|00001780| 20 61 6e 20 61 72 62 69 | 74 72 61 72 79 20 6e 75 | an arbi|trary nu|
|00001790| 6d 62 65 72 20 75 73 65 | 64 20 74 6f 20 73 70 65 |mber use|d to spe|
|000017a0| 63 69 66 79 20 74 68 65 | 20 77 69 64 74 68 20 6f |cify the| width o|
|000017b0| 66 20 74 68 65 20 54 45 | 52 65 63 27 73 0d 09 64 |f the TE|Rec's..d|
|000017c0| 65 73 74 69 6e 61 74 69 | 6f 6e 20 72 65 63 74 61 |estinati|on recta|
|000017d0| 6e 67 6c 65 20 73 6f 20 | 74 68 61 74 20 77 6f 72 |ngle so |that wor|
|000017e0| 64 20 77 72 61 70 20 61 | 6e 64 20 68 6f 72 69 7a |d wrap a|nd horiz|
|000017f0| 6f 6e 74 61 6c 20 73 63 | 72 6f 6c 6c 69 6e 67 20 |ontal sc|rolling |
|00001800| 63 61 6e 20 62 65 0d 09 | 64 65 6d 6f 6e 73 74 72 |can be..|demonstr|
|00001810| 61 74 65 64 2e 20 2a 2f | 0d 23 64 65 66 69 6e 65 |ated. */|.#define|
|00001820| 09 6b 4d 61 78 44 6f 63 | 57 69 64 74 68 09 09 09 |.kMaxDoc|Width...|
|00001830| 35 37 36 0d 09 0d 2f 2a | 20 6b 4d 69 6e 44 6f 63 |576.../*| kMinDoc|
|00001840| 44 69 6d 20 69 73 20 75 | 73 65 64 20 74 6f 20 6c |Dim is u|sed to l|
|00001850| 69 6d 69 74 20 74 68 65 | 20 6d 69 6e 69 6d 75 6d |imit the| minimum|
|00001860| 20 64 69 6d 65 6e 73 69 | 6f 6e 20 6f 66 20 61 20 | dimensi|on of a |
|00001870| 77 69 6e 64 6f 77 20 77 | 68 65 6e 20 47 72 6f 77 |window w|hen Grow|
|00001880| 57 69 6e 64 6f 77 0d 09 | 69 73 20 63 61 6c 6c 65 |Window..|is calle|
|00001890| 64 2e 20 2a 2f 0d 23 64 | 65 66 69 6e 65 09 6b 4d |d. */.#d|efine.kM|
|000018a0| 69 6e 44 6f 63 44 69 6d | 09 09 09 09 36 34 0d 0d |inDocDim|....64..|
|000018b0| 2f 2a 09 6b 43 6f 6e 74 | 72 6f 6c 49 6e 76 69 73 |/*.kCont|rolInvis|
|000018c0| 69 62 6c 65 20 69 73 20 | 75 73 65 64 20 74 6f 20 |ible is |used to |
|000018d0| 27 74 75 72 6e 20 6f 66 | 66 27 20 63 6f 6e 74 72 |'turn of|f' contr|
|000018e0| 6f 6c 73 20 28 69 2e 65 | 2e 2c 20 63 61 75 73 65 |ols (i.e|., cause|
|000018f0| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 20 6e 6f 74 | the con|trol not|
|00001900| 0d 09 74 6f 20 62 65 20 | 72 65 64 72 61 77 6e 20 |..to be |redrawn |
|00001910| 61 73 20 61 20 72 65 73 | 75 6c 74 20 6f 66 20 73 |as a res|ult of s|
|00001920| 6f 6d 65 20 43 6f 6e 74 | 72 6f 6c 20 4d 61 6e 61 |ome Cont|rol Mana|
|00001930| 67 65 72 20 63 61 6c 6c | 20 73 75 63 68 20 61 73 |ger call| such as|
|00001940| 20 53 65 74 43 74 6c 56 | 61 6c 75 65 29 0d 09 62 | SetCtlV|alue)..b|
|00001950| 79 20 62 65 69 6e 67 20 | 70 75 74 20 69 6e 74 6f |y being |put into|
|00001960| 20 74 68 65 20 63 6f 6e | 74 72 6c 56 69 73 20 66 | the con|trlVis f|
|00001970| 69 65 6c 64 20 6f 66 20 | 74 68 65 20 72 65 63 6f |ield of |the reco|
|00001980| 72 64 2e 20 6b 43 6f 6e | 74 72 6f 6c 56 69 73 69 |rd. kCon|trolVisi|
|00001990| 62 6c 65 20 69 73 20 75 | 73 65 64 0d 09 74 68 65 |ble is u|sed..the|
|000019a0| 20 73 61 6d 65 20 77 61 | 79 20 74 6f 20 27 74 75 | same wa|y to 'tu|
|000019b0| 72 6e 20 6f 6e 27 20 74 | 68 65 20 63 6f 6e 74 72 |rn on' t|he contr|
|000019c0| 6f 6c 2e 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 6b |ol. */.#|define k|
|000019d0| 43 6f 6e 74 72 6f 6c 49 | 6e 76 69 73 69 62 6c 65 |ControlI|nvisible|
|000019e0| 09 09 30 0d 23 64 65 66 | 69 6e 65 20 6b 43 6f 6e |..0.#def|ine kCon|
|000019f0| 74 72 6f 6c 56 69 73 69 | 62 6c 65 09 09 09 30 78 |trolVisi|ble...0x|
|00001a00| 46 46 0d 0d 2f 2a 09 6b | 53 63 72 6f 6c 6c 62 61 |FF../*.k|Scrollba|
|00001a10| 72 41 64 6a 75 73 74 20 | 61 6e 64 20 6b 53 63 72 |rAdjust |and kScr|
|00001a20| 6f 6c 6c 62 61 72 57 69 | 64 74 68 20 61 72 65 20 |ollbarWi|dth are |
|00001a30| 75 73 65 64 20 69 6e 20 | 63 61 6c 63 75 6c 61 74 |used in |calculat|
|00001a40| 69 6e 67 0d 09 76 61 6c | 75 65 73 20 66 6f 72 20 |ing..val|ues for |
|00001a50| 63 6f 6e 74 72 6f 6c 20 | 70 6f 73 69 74 69 6f 6e |control |position|
|00001a60| 69 6e 67 20 61 6e 64 20 | 73 69 7a 69 6e 67 2e 20 |ing and |sizing. |
|00001a70| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 6b 53 63 72 6f |*/.#defi|ne kScro|
|00001a80| 6c 6c 62 61 72 57 69 64 | 74 68 09 09 09 31 36 0d |llbarWid|th...16.|
|00001a90| 23 64 65 66 69 6e 65 20 | 6b 53 63 72 6f 6c 6c 62 |#define |kScrollb|
|00001aa0| 61 72 41 64 6a 75 73 74 | 09 09 28 6b 53 63 72 6f |arAdjust|..(kScro|
|00001ab0| 6c 6c 62 61 72 57 69 64 | 74 68 20 2d 20 31 29 0d |llbarWid|th - 1).|
|00001ac0| 0d 2f 2a 09 6b 53 63 72 | 6f 6c 6c 54 77 65 65 6b |./*.kScr|ollTweek|
|00001ad0| 20 63 6f 6d 70 65 6e 73 | 61 74 65 73 20 66 6f 72 | compens|ates for|
|00001ae0| 20 6f 66 66 2d 62 79 2d | 6f 6e 65 20 72 65 71 75 | off-by-|one requ|
|00001af0| 69 72 65 6d 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |irements| of the |
|00001b00| 73 63 72 6f 6c 6c 62 61 | 72 73 0d 20 74 6f 20 68 |scrollba|rs. to h|
|00001b10| 61 76 65 20 62 6f 72 64 | 65 72 73 20 63 6f 69 6e |ave bord|ers coin|
|00001b20| 63 69 64 65 20 77 69 74 | 68 20 74 68 65 20 67 72 |cide wit|h the gr|
|00001b30| 6f 77 62 6f 78 2e 20 2a | 2f 0d 23 64 65 66 69 6e |owbox. *|/.#defin|
|00001b40| 65 20 6b 53 63 72 6f 6c | 6c 54 77 65 65 6b 09 09 |e kScrol|lTweek..|
|00001b50| 09 32 0d 09 0d 2f 2a 09 | 6b 43 72 43 68 61 72 20 |.2.../*.|kCrChar |
|00001b60| 69 73 20 75 73 65 64 20 | 74 6f 20 6d 61 74 63 68 |is used |to match|
|00001b70| 20 77 69 74 68 20 61 20 | 63 61 72 72 69 61 67 65 | with a |carriage|
|00001b80| 20 72 65 74 75 72 6e 20 | 77 68 65 6e 20 63 61 6c | return |when cal|
|00001b90| 63 75 6c 61 74 69 6e 67 | 20 74 68 65 0d 09 6e 75 |culating| the..nu|
|00001ba0| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 69 6e |mber of |lines in|
|00001bb0| 20 74 68 65 20 54 65 78 | 74 45 64 69 74 20 72 65 | the Tex|tEdit re|
|00001bc0| 63 6f 72 64 2e 20 6b 44 | 65 6c 43 68 61 72 20 69 |cord. kD|elChar i|
|00001bd0| 73 20 75 73 65 64 20 74 | 6f 20 63 68 65 63 6b 20 |s used t|o check |
|00001be0| 66 6f 72 0d 09 64 65 6c | 65 74 65 20 69 6e 20 6b |for..del|ete in k|
|00001bf0| 65 79 44 6f 77 6e 73 2e | 20 2a 2f 0d 23 64 65 66 |eyDowns.| */.#def|
|00001c00| 69 6e 65 20 6b 43 72 43 | 68 61 72 09 09 09 09 09 |ine kCrC|har.....|
|00001c10| 31 33 0d 23 64 65 66 69 | 6e 65 20 6b 44 65 6c 43 |13.#defi|ne kDelC|
|00001c20| 68 61 72 09 09 09 09 38 | 0d 09 0d 2f 2a 09 6b 42 |har....8|.../*.kB|
|00001c30| 75 74 74 6f 6e 53 63 72 | 6f 6c 6c 20 69 73 20 68 |uttonScr|oll is h|
|00001c40| 6f 77 20 6d 61 6e 79 20 | 70 69 78 65 6c 73 20 74 |ow many |pixels t|
|00001c50| 6f 20 73 63 72 6f 6c 6c | 20 68 6f 72 69 7a 6f 6e |o scroll| horizon|
|00001c60| 74 61 6c 6c 79 20 77 68 | 65 6e 20 74 68 65 20 62 |tally wh|en the b|
|00001c70| 75 74 74 6f 6e 20 70 61 | 72 74 0d 09 6f 66 20 74 |utton pa|rt..of t|
|00001c80| 68 65 20 68 6f 72 69 7a | 6f 6e 74 61 6c 20 73 63 |he horiz|ontal sc|
|00001c90| 72 6f 6c 6c 62 61 72 20 | 69 73 20 70 72 65 73 73 |rollbar |is press|
|00001ca0| 65 64 2e 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 6b |ed. */.#|define k|
|00001cb0| 42 75 74 74 6f 6e 53 63 | 72 6f 6c 6c 09 09 09 34 |ButtonSc|roll...4|
|00001cc0| 0d 09 0d 2f 2a 09 6b 4d | 61 78 54 45 4c 65 6e 67 |.../*.kM|axTELeng|
|00001cd0| 74 68 20 69 73 20 61 6e | 20 61 72 62 69 74 72 61 |th is an| arbitra|
|00001ce0| 72 79 20 6e 75 6d 62 65 | 72 20 75 73 65 64 20 74 |ry numbe|r used t|
|00001cf0| 6f 20 6c 69 6d 69 74 20 | 74 68 65 20 6c 65 6e 67 |o limit |the leng|
|00001d00| 74 68 20 6f 66 20 74 65 | 78 74 20 69 6e 20 74 68 |th of te|xt in th|
|00001d10| 65 20 54 45 52 65 63 0d | 09 73 6f 20 74 68 61 74 |e TERec.|.so that|
|00001d20| 20 76 61 72 69 6f 75 73 | 20 65 72 72 6f 72 73 20 | various| errors |
|00001d30| 77 6f 6e 27 74 20 6f 63 | 63 75 72 20 66 72 6f 6d |won't oc|cur from|
|00001d40| 20 74 6f 6f 20 6d 61 6e | 79 20 63 68 61 72 61 63 | too man|y charac|
|00001d50| 74 65 72 73 20 69 6e 20 | 74 68 65 20 74 65 78 74 |ters in |the text|
|00001d60| 2e 20 2a 2f 0d 23 64 65 | 66 69 6e 65 09 6b 4d 61 |. */.#de|fine.kMa|
|00001d70| 78 54 45 4c 65 6e 67 74 | 68 09 09 09 33 32 30 30 |xTELengt|h...3200|
|00001d80| 30 0d 0d 2f 2a 20 6b 53 | 79 73 45 6e 76 69 72 6f |0../* kS|ysEnviro|
|00001d90| 6e 73 56 65 72 73 69 6f | 6e 20 69 73 20 70 61 73 |nsVersio|n is pas|
|00001da0| 73 65 64 20 74 6f 20 53 | 79 73 45 6e 76 69 72 6f |sed to S|ysEnviro|
|00001db0| 6e 73 20 74 6f 20 74 65 | 6c 6c 20 69 74 20 77 68 |ns to te|ll it wh|
|00001dc0| 69 63 68 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ich vers|ion of t|
|00001dd0| 68 65 0d 20 20 20 53 79 | 73 45 6e 76 52 65 63 20 |he. Sy|sEnvRec |
|00001de0| 77 65 20 75 6e 64 65 72 | 73 74 61 6e 64 2e 20 2a |we under|stand. *|
|00001df0| 2f 0d 23 64 65 66 69 6e | 65 09 6b 53 79 73 45 6e |/.#defin|e.kSysEn|
|00001e00| 76 69 72 6f 6e 73 56 65 | 72 73 69 6f 6e 09 09 31 |vironsVe|rsion..1|
|00001e10| 0d 0d 2f 2a 20 6b 4f 53 | 45 76 65 6e 74 20 69 73 |../* kOS|Event is|
|00001e20| 20 74 68 65 20 65 76 65 | 6e 74 20 6e 75 6d 62 65 | the eve|nt numbe|
|00001e30| 72 20 6f 66 20 74 68 65 | 20 73 75 73 70 65 6e 64 |r of the| suspend|
|00001e40| 2f 72 65 73 75 6d 65 20 | 61 6e 64 20 6d 6f 75 73 |/resume |and mous|
|00001e50| 65 2d 6d 6f 76 65 64 20 | 65 76 65 6e 74 73 20 73 |e-moved |events s|
|00001e60| 65 6e 74 0d 20 20 20 62 | 79 20 4d 75 6c 74 69 46 |ent. b|y MultiF|
|00001e70| 69 6e 64 65 72 2e 20 4f | 6e 63 65 20 77 65 20 64 |inder. O|nce we d|
|00001e80| 65 74 65 72 6d 69 6e 65 | 20 74 68 61 74 20 61 6e |etermine| that an|
|00001e90| 20 65 76 65 6e 74 20 69 | 73 20 61 6e 20 4f 53 45 | event i|s an OSE|
|00001ea0| 76 65 6e 74 2c 20 77 65 | 20 6c 6f 6f 6b 20 61 74 |vent, we| look at|
|00001eb0| 20 74 68 65 0d 20 20 20 | 68 69 67 68 20 62 79 74 | the. |high byt|
|00001ec0| 65 20 6f 66 20 74 68 65 | 20 6d 65 73 73 61 67 65 |e of the| message|
|00001ed0| 20 73 65 6e 74 20 74 6f | 20 64 65 74 65 72 6d 69 | sent to| determi|
|00001ee0| 6e 65 20 77 68 69 63 68 | 20 6b 69 6e 64 20 69 74 |ne which| kind it|
|00001ef0| 20 69 73 2e 20 54 6f 20 | 64 69 66 66 65 72 65 6e | is. To |differen|
|00001f00| 74 69 61 74 65 0d 20 20 | 20 73 75 73 70 65 6e 64 |tiate. | suspend|
|00001f10| 20 61 6e 64 20 72 65 73 | 75 6d 65 20 65 76 65 6e | and res|ume even|
|00001f20| 74 73 20 77 65 20 63 68 | 65 63 6b 20 74 68 65 20 |ts we ch|eck the |
|00001f30| 72 65 73 75 6d 65 4d 61 | 73 6b 20 62 69 74 2e 20 |resumeMa|sk bit. |
|00001f40| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 6b 4f 53 45 76 |*/.#defi|ne.kOSEv|
|00001f50| 65 6e 74 09 09 09 09 61 | 70 70 34 45 76 74 09 2f |ent....a|pp4Evt./|
|00001f60| 2a 20 65 76 65 6e 74 20 | 75 73 65 64 20 62 79 20 |* event |used by |
|00001f70| 4d 75 6c 74 69 46 69 6e | 64 65 72 20 2a 2f 0d 23 |MultiFin|der */.#|
|00001f80| 64 65 66 69 6e 65 09 6b | 53 75 73 70 65 6e 64 52 |define.k|SuspendR|
|00001f90| 65 73 75 6d 65 4d 65 73 | 73 61 67 65 09 31 09 09 |esumeMes|sage.1..|
|00001fa0| 2f 2a 20 68 69 67 68 20 | 62 79 74 65 20 6f 66 20 |/* high |byte of |
|00001fb0| 73 75 73 70 65 6e 64 2f | 72 65 73 75 6d 65 20 65 |suspend/|resume e|
|00001fc0| 76 65 6e 74 20 6d 65 73 | 73 61 67 65 20 2a 2f 0d |vent mes|sage */.|
|00001fd0| 23 64 65 66 69 6e 65 09 | 6b 52 65 73 75 6d 65 4d |#define.|kResumeM|
|00001fe0| 61 73 6b 09 09 09 09 31 | 09 09 2f 2a 20 62 69 74 |ask....1|../* bit|
|00001ff0| 20 6f 66 20 6d 65 73 73 | 61 67 65 20 66 69 65 6c | of mess|age fiel|
|00002000| 64 20 66 6f 72 20 72 65 | 73 75 6d 65 20 76 73 2e |d for re|sume vs.|
|00002010| 20 73 75 73 70 65 6e 64 | 20 2a 2f 0d 23 64 65 66 | suspend| */.#def|
|00002020| 69 6e 65 09 6b 4d 6f 75 | 73 65 4d 6f 76 65 64 4d |ine.kMou|seMovedM|
|00002030| 65 73 73 61 67 65 09 09 | 30 78 46 41 09 2f 2a 20 |essage..|0xFA./* |
|00002040| 68 69 67 68 20 62 79 74 | 65 20 6f 66 20 6d 6f 75 |high byt|e of mou|
|00002050| 73 65 2d 6d 6f 76 65 64 | 20 65 76 65 6e 74 20 6d |se-moved| event m|
|00002060| 65 73 73 61 67 65 20 2a | 2f 0d 0d 2f 2a 20 31 2e |essage *|/../* 1.|
|00002070| 30 31 20 2d 20 6b 4d 69 | 6e 48 65 61 70 20 2d 20 |01 - kMi|nHeap - |
|00002080| 54 68 69 73 20 69 73 20 | 74 68 65 20 6d 69 6e 69 |This is |the mini|
|00002090| 6d 75 6d 20 72 65 73 75 | 6c 74 20 66 72 6f 6d 20 |mum resu|lt from |
|000020a0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 0d 09 20 |the foll|owing.. |
|000020b0| 65 71 75 61 74 69 6f 6e | 3a 0d 09 09 09 0d 09 09 |equation|:.......|
|000020c0| 09 4f 52 44 28 47 65 74 | 41 70 70 6c 4c 69 6d 69 |.ORD(Get|ApplLimi|
|000020d0| 74 29 20 2d 20 4f 52 44 | 28 41 70 70 6c 69 63 5a |t) - ORD|(ApplicZ|
|000020e0| 6f 6e 65 29 0d 09 09 09 | 0d 09 20 66 6f 72 20 74 |one)....|.. for t|
|000020f0| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |he appli|cation t|
|00002100| 6f 20 72 75 6e 2e 20 49 | 74 20 77 69 6c 6c 20 69 |o run. I|t will i|
|00002110| 6e 73 75 72 65 20 74 68 | 61 74 20 65 6e 6f 75 67 |nsure th|at enoug|
|00002120| 68 20 6d 65 6d 6f 72 79 | 20 77 69 6c 6c 0d 09 20 |h memory| will.. |
|00002130| 62 65 20 61 72 6f 75 6e | 64 20 66 6f 72 20 72 65 |be aroun|d for re|
|00002140| 61 73 6f 6e 61 62 6c 65 | 2d 73 69 7a 65 64 20 73 |asonable|-sized s|
|00002150| 63 72 61 70 73 2c 20 46 | 4b 45 59 73 2c 20 65 74 |craps, F|KEYs, et|
|00002160| 63 2e 20 74 6f 20 65 78 | 69 73 74 20 77 69 74 68 |c. to ex|ist with|
|00002170| 20 74 68 65 0d 09 20 61 | 70 70 6c 69 63 61 74 69 | the.. a|pplicati|
|00002180| 6f 6e 2c 20 61 6e 64 20 | 73 74 69 6c 6c 20 67 69 |on, and |still gi|
|00002190| 76 65 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |ve the a|pplicati|
|000021a0| 6f 6e 20 73 6f 6d 65 20 | 27 62 72 65 61 74 68 69 |on some |'breathi|
|000021b0| 6e 67 20 72 6f 6f 6d 27 | 2e 0d 09 20 54 6f 20 64 |ng room'|... To d|
|000021c0| 65 72 69 76 65 20 74 68 | 69 73 20 6e 75 6d 62 65 |erive th|is numbe|
|000021d0| 72 2c 20 77 65 20 72 61 | 6e 20 75 6e 64 65 72 20 |r, we ra|n under |
|000021e0| 61 20 4d 75 6c 74 69 46 | 69 6e 64 65 72 20 70 61 |a MultiF|inder pa|
|000021f0| 72 74 69 74 69 6f 6e 20 | 74 68 61 74 20 77 61 73 |rtition |that was|
|00002200| 0d 09 20 6f 75 72 20 72 | 65 71 75 65 73 74 65 64 |.. our r|equested|
|00002210| 20 6d 69 6e 69 6d 75 6d | 20 73 69 7a 65 2c 20 61 | minimum| size, a|
|00002220| 73 20 67 69 76 65 6e 20 | 69 6e 20 74 68 65 20 27 |s given |in the '|
|00002230| 53 49 5a 45 27 20 72 65 | 73 6f 75 72 63 65 2e 20 |SIZE' re|source. |
|00002240| 2a 2f 0d 09 20 0d 23 64 | 65 66 69 6e 65 09 6b 4d |*/.. .#d|efine.kM|
|00002250| 69 6e 48 65 61 70 09 09 | 09 09 20 28 32 39 20 2a |inHeap..|.. (29 *|
|00002260| 20 31 30 32 34 29 0d 09 | 0d 2f 2a 20 31 2e 30 31 | 1024)..|./* 1.01|
|00002270| 20 2d 20 6b 4d 69 6e 53 | 70 61 63 65 20 2d 20 54 | - kMinS|pace - T|
|00002280| 68 69 73 20 69 73 20 74 | 68 65 20 6d 69 6e 69 6d |his is t|he minim|
|00002290| 75 6d 20 72 65 73 75 6c | 74 20 66 72 6f 6d 20 50 |um resul|t from P|
|000022a0| 75 72 67 65 53 70 61 63 | 65 2c 20 77 68 65 6e 20 |urgeSpac|e, when |
|000022b0| 63 61 6c 6c 65 64 0d 09 | 20 61 74 20 69 6e 69 74 |called..| at init|
|000022c0| 69 61 6c 69 7a 61 74 69 | 6f 6e 20 74 69 6d 65 2c |ializati|on time,|
|000022d0| 20 66 6f 72 20 74 68 65 | 20 61 70 70 6c 69 63 61 | for the| applica|
|000022e0| 74 69 6f 6e 20 74 6f 20 | 72 75 6e 2e 20 54 68 69 |tion to |run. Thi|
|000022f0| 73 20 6e 75 6d 62 65 72 | 20 61 63 74 73 0d 09 20 |s number| acts.. |
|00002300| 61 73 20 61 20 64 6f 75 | 62 6c 65 2d 63 68 65 63 |as a dou|ble-chec|
|00002310| 6b 20 74 6f 20 69 6e 73 | 75 72 65 20 74 68 61 74 |k to ins|ure that|
|00002320| 20 74 68 65 72 65 20 72 | 65 61 6c 6c 79 20 69 73 | there r|eally is|
|00002330| 20 65 6e 6f 75 67 68 20 | 6d 65 6d 6f 72 79 20 66 | enough |memory f|
|00002340| 6f 72 20 74 68 65 0d 09 | 20 61 70 70 6c 69 63 61 |or the..| applica|
|00002350| 74 69 6f 6e 20 74 6f 20 | 72 75 6e 2c 20 69 6e 63 |tion to |run, inc|
|00002360| 6c 75 64 69 6e 67 20 77 | 68 61 74 20 68 61 73 20 |luding w|hat has |
|00002370| 62 65 65 6e 20 74 61 6b | 65 6e 20 75 70 20 61 6c |been tak|en up al|
|00002380| 72 65 61 64 79 20 62 79 | 0d 09 20 70 72 65 2d 6c |ready by|.. pre-l|
|00002390| 6f 61 64 65 64 20 72 65 | 73 6f 75 72 63 65 73 2c |oaded re|sources,|
|000023a0| 20 74 68 65 20 73 63 72 | 61 70 2c 20 63 6f 64 65 | the scr|ap, code|
|000023b0| 2c 20 61 6e 64 20 6f 74 | 68 65 72 20 73 75 6e 64 |, and ot|her sund|
|000023c0| 72 79 20 6d 65 6d 6f 72 | 79 20 62 6c 6f 63 6b 73 |ry memor|y blocks|
|000023d0| 2e 20 2a 2f 0d 09 20 0d | 23 64 65 66 69 6e 65 09 |. */.. .|#define.|
|000023e0| 6b 4d 69 6e 53 70 61 63 | 65 09 09 09 09 28 32 30 |kMinSpac|e....(20|
|000023f0| 20 2a 20 31 30 32 34 29 | 0d 0d 2f 2a 09 6b 45 78 | * 1024)|../*.kEx|
|00002400| 74 72 65 6d 65 4e 65 67 | 20 61 6e 64 20 6b 45 78 |tremeNeg| and kEx|
|00002410| 74 72 65 6d 65 50 6f 73 | 20 61 72 65 20 75 73 65 |tremePos| are use|
|00002420| 64 20 74 6f 20 73 65 74 | 20 75 70 20 77 69 64 65 |d to set| up wide|
|00002430| 20 6f 70 65 6e 20 72 65 | 63 74 61 6e 67 6c 65 73 | open re|ctangles|
|00002440| 20 61 6e 64 20 72 65 67 | 69 6f 6e 73 2e 20 2a 2f | and reg|ions. */|
|00002450| 0d 23 64 65 66 69 6e 65 | 20 6b 45 78 74 72 65 6d |.#define| kExtrem|
|00002460| 65 4e 65 67 09 09 09 09 | 2d 33 32 37 36 38 0d 23 |eNeg....|-32768.#|
|00002470| 64 65 66 69 6e 65 20 6b | 45 78 74 72 65 6d 65 50 |define k|ExtremeP|
|00002480| 6f 73 09 09 09 09 28 33 | 32 37 36 37 20 2d 20 31 |os....(3|2767 - 1|
|00002490| 29 09 2f 2a 20 72 65 71 | 75 69 72 65 64 20 74 6f |)./* req|uired to|
|000024a0| 20 61 64 64 72 65 73 73 | 20 61 6e 20 6f 6c 64 20 | address| an old |
|000024b0| 72 65 67 69 6f 6e 20 62 | 75 67 20 2a 2f 0d 09 0d |region b|ug */...|
|000024c0| 2f 2a 20 6b 54 45 53 6c | 6f 70 20 70 72 6f 76 69 |/* kTESl|op provi|
|000024d0| 64 65 73 20 73 6f 6d 65 | 20 65 78 74 72 61 20 73 |des some| extra s|
|000024e0| 65 63 75 72 69 74 79 20 | 77 68 65 6e 20 70 72 65 |ecurity |when pre|
|000024f0| 2d 66 6c 69 67 68 74 69 | 6e 67 20 65 64 69 74 20 |-flighti|ng edit |
|00002500| 63 6f 6d 6d 61 6e 64 73 | 2e 20 2a 2f 0d 23 64 65 |commands|. */.#de|
|00002510| 66 69 6e 65 09 6b 54 45 | 53 6c 6f 70 09 09 09 09 |fine.kTE|Slop....|
|00002520| 09 31 30 32 34 0d 0d 2f | 2a 20 54 68 65 20 66 6f |.1024../|* The fo|
|00002530| 6c 6c 6f 77 69 6e 67 20 | 61 72 65 20 69 6e 64 69 |llowing |are indi|
|00002540| 63 69 65 73 20 69 6e 74 | 6f 20 53 54 52 23 20 72 |cies int|o STR# r|
|00002550| 65 73 6f 75 72 63 65 73 | 2e 20 2a 2f 0d 23 64 65 |esources|. */.#de|
|00002560| 66 69 6e 65 09 65 57 72 | 6f 6e 67 4d 61 63 68 69 |fine.eWr|ongMachi|
|00002570| 6e 65 09 09 09 31 0d 23 | 64 65 66 69 6e 65 09 65 |ne...1.#|define.e|
|00002580| 53 6d 61 6c 6c 53 69 7a | 65 09 09 09 09 32 0d 23 |SmallSiz|e....2.#|
|00002590| 64 65 66 69 6e 65 09 65 | 4e 6f 4d 65 6d 6f 72 79 |define.e|NoMemory|
|000025a0| 09 09 09 09 33 0d 23 64 | 65 66 69 6e 65 09 65 4e |....3.#d|efine.eN|
|000025b0| 6f 53 70 61 63 65 43 75 | 74 09 09 09 09 34 0d 23 |oSpaceCu|t....4.#|
|000025c0| 64 65 66 69 6e 65 09 65 | 4e 6f 43 75 74 09 09 09 |define.e|NoCut...|
|000025d0| 09 09 35 0d 23 64 65 66 | 69 6e 65 09 65 4e 6f 43 |..5.#def|ine.eNoC|
|000025e0| 6f 70 79 09 09 09 09 09 | 36 0d 23 64 65 66 69 6e |opy.....|6.#defin|
|000025f0| 65 09 65 45 78 63 65 65 | 64 50 61 73 74 65 09 09 |e.eExcee|dPaste..|
|00002600| 09 37 0d 23 64 65 66 69 | 6e 65 09 65 4e 6f 53 70 |.7.#defi|ne.eNoSp|
|00002610| 61 63 65 50 61 73 74 65 | 09 09 09 38 0d 23 64 65 |acePaste|...8.#de|
|00002620| 66 69 6e 65 09 65 4e 6f | 57 69 6e 64 6f 77 09 09 |fine.eNo|Window..|
|00002630| 09 09 39 0d 23 64 65 66 | 69 6e 65 09 65 45 78 63 |..9.#def|ine.eExc|
|00002640| 65 65 64 43 68 61 72 09 | 09 09 09 31 30 0d 23 64 |eedChar.|...10.#d|
|00002650| 65 66 69 6e 65 09 65 4e | 6f 50 61 73 74 65 09 09 |efine.eN|oPaste..|
|00002660| 09 09 31 31 0d 0d 23 64 | 65 66 69 6e 65 09 72 4d |..11..#d|efine.rM|
|00002670| 65 6e 75 42 61 72 09 31 | 32 38 09 09 09 09 2f 2a |enuBar.1|28..../*|
|00002680| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 27 73 20 6d | applica|tion's m|
|00002690| 65 6e 75 20 62 61 72 20 | 2a 2f 0d 23 64 65 66 69 |enu bar |*/.#defi|
|000026a0| 6e 65 09 72 41 62 6f 75 | 74 41 6c 65 72 74 09 31 |ne.rAbou|tAlert.1|
|000026b0| 32 38 09 09 09 09 2f 2a | 20 61 62 6f 75 74 20 61 |28..../*| about a|
|000026c0| 6c 65 72 74 20 2a 2f 0d | 23 64 65 66 69 6e 65 09 |lert */.|#define.|
|000026d0| 72 55 73 65 72 41 6c 65 | 72 74 09 31 32 39 09 09 |rUserAle|rt.129..|
|000026e0| 09 09 2f 2a 20 75 73 65 | 72 20 65 72 72 6f 72 20 |../* use|r error |
|000026f0| 61 6c 65 72 74 20 2a 2f | 0d 23 64 65 66 69 6e 65 |alert */|.#define|
|00002700| 09 72 44 6f 63 57 69 6e | 64 6f 77 09 31 32 38 09 |.rDocWin|dow.128.|
|00002710| 09 09 09 2f 2a 20 61 70 | 70 6c 69 63 61 74 69 6f |.../* ap|plicatio|
|00002720| 6e 27 73 20 77 69 6e 64 | 6f 77 20 2a 2f 0d 23 64 |n's wind|ow */.#d|
|00002730| 65 66 69 6e 65 09 72 56 | 53 63 72 6f 6c 6c 09 31 |efine.rV|Scroll.1|
|00002740| 32 38 09 09 09 09 2f 2a | 20 76 65 72 74 69 63 61 |28..../*| vertica|
|00002750| 6c 20 73 63 72 6f 6c 6c | 62 61 72 20 63 6f 6e 74 |l scroll|bar cont|
|00002760| 72 6f 6c 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 72 |rol */.#|define.r|
|00002770| 48 53 63 72 6f 6c 6c 09 | 31 32 39 09 09 09 09 2f |HScroll.|129..../|
|00002780| 2a 20 68 6f 72 69 7a 6f | 6e 74 61 6c 20 73 63 72 |* horizo|ntal scr|
|00002790| 6f 6c 6c 62 61 72 20 63 | 6f 6e 74 72 6f 6c 20 2a |ollbar c|ontrol *|
|000027a0| 2f 0d 23 64 65 66 69 6e | 65 09 6b 45 72 72 53 74 |/.#defin|e.kErrSt|
|000027b0| 72 69 6e 67 73 09 31 32 | 38 09 09 09 09 2f 2a 20 |rings.12|8..../* |
|000027c0| 65 72 72 6f 72 20 73 74 | 72 69 6e 67 20 6c 69 73 |error st|ring lis|
|000027d0| 74 20 2a 2f 0d 00 00 00 | 00 00 00 00 00 00 00 00 |t */....|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00002810| 80 05 43 6c 6f 73 65 00 | 00 00 54 00 04 00 00 00 |..Close.|..T.....|
|00002820| 00 00 45 00 10 00 59 00 | 59 04 03 59 65 73 00 00 |..E...Y.|Y..Yes..|
|00002830| 0a 54 45 53 61 6d 70 6c | 65 2e 68 6d 02 00 00 00 |.TESampl|e.hm....|
|00002840| 54 45 58 54 4d 50 53 20 | 01 00 00 14 00 c0 00 00 |TEXTMPS |........|
|00002850| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 14 00 c0 |..TEXTMP|S ......|
|00002860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002870| 00 00 9f 0c 22 00 00 00 | 27 55 00 00 01 7e 00 00 |...."...|'U...~..|
|00002880| 00 00 00 00 00 00 81 04 | 4e 4f 54 45 00 00 00 3c |........|NOTE...<|
|00002890| 00 03 00 00 00 00 00 68 | 01 20 00 7c 01 71 04 02 |.......h|. .|.q..|
|000028a0| 4f 4b 00 00 00 00 00 b0 | 00 10 00 c0 00 72 88 00 |OK......|.....r..|
|000028b0| 00 00 00 00 00 0c 00 0a | 00 5c 01 72 88 00 00 00 |........|.\.r....|
|000028c0| 00 00 00 b0 00 78 00 c0 | 00 da 88 00 00 00 00 1c |.....x..|........|
|000028d0| 00 40 00 40 00 9a 01 c4 | 00 01 01 00 00 00 00 00 |.@.@....|........|
|000028e0| 00 00 00 82 07 43 6f 6e | 66 69 72 6d 00 00 00 34 |.....Con|firm...4|
|000028f0| 00 02 00 00 00 00 00 40 | 00 08 00 54 00 51 04 02 |.......@|...T.Q..|
|00002900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 2d 2d 2d |...H..Mo|naco.---|
|00002910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002920| 2d 2d 2d 2d 2d 2d 00 06 | 00 04 00 27 00 00 01 df |------..|...'....|
|00002930| 02 30 00 3c 00 24 01 dd | 02 3d 9f 93 7f 35 00 00 |.0.<.$..|.=...5..|
|00002940| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00002950| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 18 7e 44 |...L...L|...2..~D|
|00002960| 06 fc 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00002970| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+